package class_0920BaseDataStructure;

import java.util.ArrayList;
import java.util.Collection;

public class Coding_0920DataStruct {
    public static void main(String[] args) {

    }
    public static void main1(String[] args) {
        Collection<Integer> collection = new ArrayList<Integer>();
        for(int i=0;i<10;i++){
            collection.add(i); //向集合内部中插入元素
        }

        for(Integer i : collection){
            System.out.print(i+" ");
        }
        /*output :0 1 2 3 4 5 6 7 8 9 */
    }

}
